import request from "@/utils/request";
//第三方渠道管理列表
export function getChannelList(params) {
  return request({
    url: "account/channel",
    method: "get",
    params,
  });
}
//新增第三方渠道
export function addChannel(data) {
  return request({
    url: `/account/channel`,
    method: "POST",
    data,
  });
}
//修改第三方渠道
export function editChannel(data) {
  return request({
    url: `/account/channel/${data.id}`,
    method: "put",
    data,
  });
}
//批量切换状态
export function stateChannel(data) {
  return request({
    url: `/account/channel/batch/switch/state`,
    method: "PATCH",
    data,
  });
}